﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp54.Models
{
    public class Product : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;

        private string number = null!;
        public string Number
        {
            get => number;
            set
            {
                number = value; 
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Number"));
            }
        }

        public string? Name { get; set; }
        public double Cost { get; set; }
        public string? Description { get; set; }
    }
}
